#include <iostream>
#include <cmath>

using namespace std;

int inte(double x,int a=0,int b=0,int c=0,int d=0);

int main ( )
{
    int a,b,c,d;
    double x,n;

    cout<<"this program is used to calculat the integral of equation"<<endl;
    cout<<"enter the coefficient of equation:"<<endl;
    cin>>a>>b>>c>>d;
    cout<<"the x"<<endl;
    cin>>x;
    n=inte(x,a,b,c,d);
    cout<<"the answer is :"<<n<<endl;

    cin>>a;
    return 0;
}

int inte(double x,int a,int b,int c,int d)
{
    return a*pow(x,3)+b*pow(x,2)+c*pow(x,1)+d;
}